package com.studentsys.dao;

import com.studentsys.bean.City;
import com.studentsys.utils.BaseDao;

import java.util.List;

public class CityDao extends BaseDao<City> {
    //根据pid查询下面的市区
    public List<City> findCityByPid(int pid){
        String sql = "select * from city where pid = ?";
        return queryAll(sql,City.class,pid);
    }
}
